//服务层
app.service('userLoginService',function($http){
	//读取列表数据绑定到表单中
	this.showName=function(){
		return $http.get('../userLoginController/showName.do');
	}
	//修改用户名及密码
	this.updatePassword=function(entity){
		return $http.post('../userLoginController/updatePassword.do',entity);
	}
	//发送验证码
	this.sendCode=function (email) {
		return $http.get("../userLoginController/sendCode.do?email="+email);
	}
	//修改密码
	this.forgetPassword=function (entity) {
		return $http.post("../userLoginController/forgetPassword.do",entity);
	}

});